﻿@model EventSys.BussinesEntities.Ubicacion

@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Editar Datos de Ubicación</h2>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true, "Corrija errores, vuelva a ubicar un punto")

    <fieldset>
        <legend>Ubicacion</legend>
         <table>
        <td><div id="DonorsDiv">

            <div class="editor-label">
                @Html.HiddenFor(model => model.idUbicacion)
            </div>
            <div class="editor-field">
                @Html.HiddenFor(model => model.idUbicacion)
                @Html.ValidationMessageFor(model => model.idUbicacion)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model => model.Descripcion)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Descripcion)
                @Html.ValidationMessageFor(model => model.Descripcion)
            </div>

            <div class="editor-label">
                Dirección-Ubicación
                @*@Html.LabelFor(model => model.Address)*@
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Address)
                @Html.ValidationMessageFor(model => model.Address)
            </div>

            <div class="editor-label">
                @Html.HiddenFor(model => model.Latitude)
            </div>
            <div class="editor-field">
                @Html.HiddenFor(model => model.Latitude)
                @Html.ValidationMessageFor(model => model.Latitude)
            </div>

            <div class="editor-label">
                @Html.HiddenFor(model => model.Longitude)
            </div>
            <div class="editor-field">
                @Html.HiddenFor(model => model.Longitude)
                @Html.ValidationMessageFor(model => model.Longitude)
            </div>            

            <p>
                <input type="submit" value="Registrar" class="k-button" />
            </p>
        </div> 

        </td>
        <td> 
            <div id="theMap" style="width:520px"> @Html.Partial("_Map")</div> 

        </td>
     </table>       

    </fieldset>
}

<div>
   @* @Html.ActionLink("Back to List", "Index")*@
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
